 <div class="actionTM">
    <div class="row-fluid" style="padding-bottom: 15px;">
        <div class="span6"><h2>Most Ideal Tattoos</h2></div>
        <div class="span6" align="right"><a style="display: block;" class="more" href="/">View more <img src="<?php echo STATIC_URL; ?>/img/all.gif"></a></div>
    </div>
    <ul class="ulPublic">
        <div class="row-fluid" style="margin-bottom: 25px; margin-top:10px overflow: hidden; position: relative">
            <?php if(!empty($mostPost)): ?>
            <?php $cate = $this->config->item('categories'); ?>
            <?php $permalink = '';$arrUri = array();$i = 0;$indicator = '';$shareLink = ''; ?>
            <?php foreach($mostPost as $post): ?>
            <?php $i= $i+1; ?>
            <?php $post->post_title = strip_tags($post->post_title); $permalink = permalink(array('text' => $post->post_title, 'id' => $post->id));$shareLink = urlencode($permalink); ?>
            <?php $arrUri[] = $permalink;?>
            <?php if($i < 4){ ?>
            <div class="span4 shadow guide-hovered" style="position: relative; width: 300px;">
                <a href="<?php echo $permalink; ?>">
                    <img class="guide-image" src="<?php echo 'http://toptattoos.net/uploads/'.$post->post_image;//echo getImage($post->post_image) ?>" alt="" width="300" height="300">
                </a>
                <a href="<?php echo $permalink; ?>">
                    <div class="mask"></div>
                </a>
                <div class="guide-stats">
                        <a class="aView" href="/">597</a>
                        <a class="aLike" href="/">5</a>
                        <a class="aComment" href="/">0</a>
                   <!--  <i class="icon-heart"></i> <span style="margin-right: 15px;">5</span>
                    <i class="icon-pencil"></i> <span style="margin-right: 15px;">0</span>
                    <i class="icon-eye-open"></i> <span style="margin-right: 5px;">597</span> -->
                </div>
                <div class="guide-info-summary">
                    good ?                                        </div>
                <div class="divAuthor png">
                    <h2 class="titleObj">
                        <a href="<?php echo $permalink; ?>"><?php echo $post->post_title ?></a>
                    </h2>
                    <h3 class="h3By">
                        by <a href="haphuong">Nguyễn Hà Phương</a>
                    </h3>
                </div>
            </div>  
            <?php } ?>
            <?php endforeach; ?>       
            <?php endif; ?>                                      
        </div>

        <div class="row-fluid" style="margin-bottom: 25px; margin-top:10px overflow: hidden; position: relative">
            <ul class="ulPublic guide-list-two">
                <?php if(!empty($mostPost)): ?>
                <?php $cate = $this->config->item('categories'); ?>
                <?php $permalink = '';$arrUri = array();$i=0;$indicator = '';$shareLink = ''; ?>
                <?php foreach($mostPost as $post): ?>
                <?php $i= $i+1; ?>
                <?php $post->post_title = strip_tags($post->post_title); $permalink = permalink(array('text' => $post->post_title, 'id' => $post->id));$shareLink = urlencode($permalink); ?>
                <?php $arrUri[] = $permalink;?>
                <?php if($i > 3){ ?>                                  
                <li class="liPublic guide-list-two">
                    <div class="guide-box " style="height: 215px; margin-bottom: 0px;">
                        <a href="<?php echo $permalink; ?>"><img class="step-photo" src="<?php echo 'http://toptattoos.net/uploads/'.$post->post_image;//echo getImage($post->post_image) ?>"></a>
                        <span class="guide-content titlemax">
                            <a href="<?php echo $permalink; ?>"><?php echo $post->post_title ?></a>
                        </span>
                        <div style="margin-top: 3px; font-size: 12px; color: #999999; padding-left: 8px ;">by <a href="/">Nguyễn Hà Phương</a></div>  
                    </div>
                </li>
                <?php } ?>
                <?php endforeach; ?>       
                <?php endif; ?>                                     
            </ul>
        </div>
    </ul>
</div>